// AUSlotsGuts.H : Declaration of the CAUSlotsGuts class

#ifndef __AUSLOTSGUTS_H_
#define __AUSLOTSGUTS_H_

class CAUSlotsGutsAccessor
{
public:
	LONG m_nGutsID;
	TCHAR m_szGutsDescription[65];

BEGIN_COLUMN_MAP(CAUSlotsGutsAccessor)
	COLUMN_ENTRY(1, m_nGutsID)
	COLUMN_ENTRY(2, m_szGutsDescription)
END_COLUMN_MAP()

DEFINE_COMMAND_EX(CAUSlotsGutsAccessor, L" \
	SELECT \
		gutsid, \
		gutsDescription \
		FROM dbo.AUSlotsGuts \
		ORDER BY gutsid")

	// You may wish to call this function if you are inserting a record and wish to
	// initialize all the fields, if you are not going to explicitly set all of them.
	void ClearRecord()
	{
		memset(this, 0, sizeof(*this));
	}
};

class CAUSlotsGuts : public CCommand<CAccessor<CAUSlotsGutsAccessor> >
{
public:
	HRESULT Open( CSession* pSession )
	{
		return CCommand<CAccessor<CAUSlotsGutsAccessor> >::Open(*pSession);
	}
};

#endif // __AUSLOTSGUTS_H_
